package cn.yuli.base;

public class DuckAdapter implements Duck{
	Turkey turkey;
	public DuckAdapter(Turkey turkey) {
		this.turkey = turkey;
	}
	@Override
	public void quack() {
		turkey.gobble();
	}

	@Override
	public void fly() {
		turkey.fly();
	}

}
